package service;

import models.AfforestationType;
import models.AnchorPoint;
import models.Country;
import models.Crown;
import models.Ecosystem;
import models.Family;
import models.ForestCategory;
import models.ForestRight;
import models.ForestrySubType;
import models.ForestryType;
import models.Genus;
import models.Geomorphology;
import models.LandCategory;
import models.Management;
import models.ManagementMeasure;
import models.ManagementType;
import models.MotherRock;
import models.Origon;
import models.Prefecture;
import models.Province;
import models.Rights;
import models.ScatteredTrees;
import models.Shrub;
import models.Long;
import models.SlopeAspect;
import models.SlopePosition;
import models.Soil;
import models.SoilCategory;
import models.Species;
import models.State;
import models.Topography;

public class BasicInfoService {
	
	public static Boolean createAfforestationType(
			AfforestationType afforestationType) {
		afforestationType.save();
		return true;
	}

	public static Boolean deleteAfforestationType(
			AfforestationType afforestationType) {
		afforestationType.delete();
		return true;
	}

	public static AfforestationType getAfforestationType(
			AfforestationType afforestationType) {
		return AfforestationType.getAfforestationType(afforestationType);
	}

	public static Boolean createAnchorPoint(AnchorPoint anchorPoint) {
		anchorPoint.save();
		return true;
	}

	public static Boolean deleteAnchorPoint(AnchorPoint anchorPoint) {
		anchorPoint.delete();
		return true;
	}

	public static AnchorPoint getAnchorPoint(AnchorPoint anchorPoint) {
		return AnchorPoint.getAnchorPoint(anchorPoint);
	}

	public static Boolean createCountry(Country country) {
		country.save();
		return true;
	}

	public static Boolean deleteCountry(Country country) {
		country.delete();
		return true;
	}

	public static Country getCountry(Country country) {
		return Country.getCountry(country);
	}

	public static Boolean createCrown(Crown crown) {
		crown.save();
		return true;
	}

	public static Boolean deleteCrown(Crown crown) {
		crown.delete();
		return true;
	}

	public static Crown getCrown(Crown crown) {
		return Crown.getCrown(crown);
	}

	public static Boolean createEcosystem(Ecosystem ecosystem) {
		ecosystem.save();
		return true;
	}

	public static Boolean deleteEcosystem(Ecosystem ecosystem) {
		ecosystem.delete();
		return true;
	}

	public static Ecosystem getEcosystem(Ecosystem ecosystem) {
		return Ecosystem.getEcosystem(ecosystem);
	}

	public static Boolean createFamily(Family family) {
		family.save();
		return true;
	}

	public static Boolean deleteFamily(Family family) {
		family.delete();
		return true;
	}

	public static Family getFamily(Family family) {
		return Family.getFamily(family);
	}

	public static Boolean createForestCategory(ForestCategory forestCategory) {
		forestCategory.save();
		return true;
	}

	public static Boolean deleteForestCategory(ForestCategory forestCategory) {
		forestCategory.delete();
		return true;
	}

	public static ForestCategory getForestCategory(ForestCategory forestCategory) {
		return ForestCategory.getForestCategory(forestCategory);
	}

	public static Boolean createForestRight(ForestRight forestRight) {
		forestRight.save();
		return true;
	}

	public static Boolean deleteForestRight(ForestRight forestRight) {
		forestRight.delete();
		return true;
	}

	public static ForestRight getForestRight(ForestRight forestRight) {
		return ForestRight.getForestRight(forestRight);
	}

	public static Boolean createForestrySubType(ForestrySubType forestrySubType) {
		forestrySubType.save();
		return true;
	}

	public static Boolean deleteForestrySubType(ForestrySubType forestrySubType) {
		forestrySubType.delete();
		return true;
	}

	public static ForestrySubType getForestrySubType(
			ForestrySubType forestrySubType) {
		return ForestrySubType.getForestSubType(forestrySubType);
	}

	public static Boolean createForestryType(ForestryType forestryType) {
		forestryType.save();
		return true;
	}

	public static Boolean deleteForestryType(ForestryType forestryType) {
		forestryType.delete();
		return true;
	}

	public static ForestryType getForestryType(ForestryType forestryType) {
		return ForestryType.getForestryType(forestryType);
	}

	public static Boolean createGenus(Genus genus) {
		genus.save();
		return true;
	}

	public static Boolean deleteGenus(Genus genus) {
		genus.delete();
		return true;
	}

	public static Genus getGenus(Genus genus) {
		return Genus.getGenus(genus);
	}

	public static Boolean createGeomorphology(Geomorphology geomorphology) {
		geomorphology.save();
		return true;
	}

	public static Boolean deleteGeomorphology(Geomorphology geomorphology) {
		geomorphology.delete();
		return true;
	}

	public static Geomorphology getGeomorphology(Geomorphology geomorphology) {
		return Geomorphology.getGeomorphology(geomorphology);
	}

	public static Boolean createLandCategory(LandCategory landCategory) {
		landCategory.save();
		return true;
	}

	public static Boolean deleteLandCategory(LandCategory landCategory) {
		landCategory.delete();
		return true;
	}

	public static LandCategory getLandCategory(LandCategory landCategory) {
		return LandCategory.getLandCategory(landCategory);
	}

	public static Boolean createManagement(Management management) {
		management.save();
		return true;
	}

	public static Boolean deleteManagement(Management management) {
		management.delete();
		return true;
	}

	public static Management getManagement(Management management) {
		return Management.getManagement(management);
	}

	public static Boolean createManagementType(ManagementType managementType) {
		managementType.save();
		return true;
	}

	public static Boolean deleteManagementType(ManagementType managementType) {
		managementType.delete();
		return true;
	}

	public static ManagementType getManagementType(ManagementType managementType) {
		return ManagementType.getManagementType(managementType);
	}

	public static Boolean createManagementMeasure(
			ManagementMeasure managementMeasure) {
		managementMeasure.save();
		return true;
	}

	public static Boolean deleteManagementMeasure(
			ManagementMeasure managementMeasure) {
		managementMeasure.delete();
		return true;
	}

	public static ManagementMeasure getManagementMeasure(
			ManagementMeasure managementMeasure) {
		return ManagementMeasure.getManagementMeasure(managementMeasure);
	}

	public static Boolean createMotherRock(MotherRock motherRock) {
		motherRock.save();
		return true;
	}

	public static Boolean deleteMotherRock(MotherRock motherRock) {
		motherRock.delete();
		return true;
	}

	public static MotherRock getMotherRock(MotherRock motherRock) {
		return MotherRock.getMotherRock(motherRock);
	}
	
	public static Boolean createOrigon(Origon origon) {
		origon.save();
		return true;
	}

	public static Boolean deleteOrigon(Origon origon) {
		origon.delete();
		return true;
	}
	
	public static Origon getOrigon(Origon origon) {
		return Origon.getOrigon(origon);
	}

	public static Boolean createPrefecture(Prefecture prefecture) {
		prefecture.save();
		return true;
	}

	public static Boolean deletePrefecture(Prefecture prefecture) {
		prefecture.delete();
		return true;
	}
	
	public static Prefecture getPrefecture(Prefecture prefecture) {
		return Prefecture.getPrefecture(prefecture);
	}

	public static Boolean createProvince(Province province) {
		province.save();
		return true;
	}

	public static Boolean deleteProvince(Province province) {
		province.delete();
		return true;
	}
	
	public static Province getProvince(Province province) {
		return Province.getProvince(province);
	}

	public static Boolean createRights(Rights rights) {
		rights.save();
		return true;
	}

	public static Boolean deleteRights(Rights rights) {
		rights.delete();
		return true;
	}
	
	public static Rights getRights(Rights rights) {
		return Rights.getRights(rights);
	}

	public static Boolean createScatteredTrees(ScatteredTrees scatteredTrees) {
		scatteredTrees.save();
		return true;
	}

	public static Boolean deleteScatteredTrees(ScatteredTrees scatteredTrees) {
		scatteredTrees.delete();
		return true;
	}
	
	public static ScatteredTrees getScatteredTrees(ScatteredTrees scatteredTrees) {
		return ScatteredTrees.geScatteredTrees(scatteredTrees);
	}

	public static Boolean createShrub(Shrub shrub) {
		shrub.save();
		return true;
	}

	public static Boolean deleteShrub(Shrub shrub) {
		shrub.delete();
		return true;
	}
	
	public static Shrub getShrub(Shrub shrub) {
		return Shrub.getShrub(shrub);
	}

	public static Boolean createSiteType(Long siteType) {
		siteType.save();
		return true;
	}

	public static Boolean deleteSiteType(Long siteType) {
		siteType.delete();
		return true;
	}
	
	public static Long getSiteType(Long siteType) {
		return Long.getSiteType(siteType);
	}

	public static Boolean createSlopeAspect(SlopeAspect slopeAspect) {
		slopeAspect.save();
		return true;
	}

	public static Boolean deleteSlopeAspect(SlopeAspect slopeAspect) {
		slopeAspect.delete();
		return true;
	}
	
	public static SlopeAspect getSlopeAspect(SlopeAspect slopeAspect) {
		return SlopeAspect.getSlopeAspect(slopeAspect);
	}

	public static Boolean createSlopePosition(SlopePosition slopePosition) {
		slopePosition.save();
		return true;
	}

	public static Boolean deleteSlopePosition(SlopePosition slopePosition) {
		slopePosition.delete();
		return true;
	}
	
	public static SlopePosition getSlopePosition(SlopePosition slopePosition) {
		return SlopePosition.getSlopePosition(slopePosition);
	}

	public static Boolean createSoil(Soil soil) {
		soil.save();
		return true;
	}

	public static Boolean deleteSoil(Soil soil) {
		soil.delete();
		return true;
	}

	public static Soil getSoil(Soil soil) {
		return Soil.getSoil(soil);
	}
	
	public static Boolean createSoilCategory(SoilCategory soilCategory) {
		soilCategory.save();
		return true;
	}

	public static Boolean deleteSoilCategory(SoilCategory soilCategory) {
		soilCategory.delete();
		return true;
	}
	
	public static SoilCategory getSoilCategory(SoilCategory soilCategory) {
		return SoilCategory.getSoilCategory(soilCategory);
	}

	public static Boolean createSpecies(Species species) {
		species.save();
		return true;
	}

	public static Boolean deleteSpecies(Species species) {
		species.delete();
		return true;
	}
	
	public static Species getSpecies(Species species) {
		return Species.getSpecies(species);
	}

	public static Boolean createState(State state) {
		state.save();
		return true;
	}

	public static Boolean deleteState(State state) {
		state.delete();
		return true;
	}
	
	public static State getState(State state) {
		return State.getState(state);
	}

	public static Boolean createTopography(Topography topography) {
		topography.save();
		return true;
	}

	public static Boolean deleteTopography(Topography topography) {
		topography.delete();
		return true;
	}
	
	public static Topography getTopography(Topography topography) {
		return Topography.geTopography(topography);
	}
}
